package com.icloud.system.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName("t_information")
@ApiModel(value = "资讯对象", description = "资讯表")
public class TInformation implements Serializable {
    @ApiModelProperty("主键")
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("封面图Url")
    @TableField("cover_url")
    private String coverUrl;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("创建人")
    @TableField(value = "created_id")
    private Long createdId;

    @ApiModelProperty("修改人")
    @TableField(value = "updated_id")
    private Long updatedId;
}
